package com.nulgame.learning.rmi.server.service;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.Calendar;

import com.nulgame.learning.rmi.service.CalendarService;

public class BasicCalendarService extends UnicastRemoteObject implements CalendarService {

	private static final long serialVersionUID = 1L;
	public static final String ID = "BasicCalendarService";
	public BasicCalendarService() throws RemoteException {
		super();
	}

	@Override
	public Calendar getDate() throws RemoteException {
		System.out.print("Calling getDate\n");
		return Calendar.getInstance();
	}

}
